package com.codejam.hello.world.anno.check.mycheck;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import java.util.List;

public class MyCheckConstraint implements ConstraintValidator<MyCheck, Object> {

    private List<String> paramValues;

    @Override
    public void initialize(MyCheck constraintAnnotation) {
        //初始化时获取注解上的值
        int a =9;
    }

    @Override
    public boolean isValid(Object value, ConstraintValidatorContext context) {
        List<String> paramValues = this.paramValues;
        return false;
    }
}
